
console.log("环境配置地址：", process.env.VUE_APP_SERVER_URL)
const htmlWebpackPlugin = require("html-webpack-plugin")
const { defineConfig } = require('@vue/cli-service')
const { VantResolver } = require('unplugin-vue-components/resolvers');
const ComponentsPlugin = require('unplugin-vue-components/webpack');
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: "./",
  chainWebpack: config => {
    config
      .plugin('html')
      .tap(args => {
        args[0].title = '学习打卡'
        return args
      })
  },
  configureWebpack: {
    plugins: [
      ComponentsPlugin({
        resolvers: [VantResolver()],
      }),
    ],
  },
})
